﻿namespace Compass.Wasm.Shared.Wms;
/// <summary>
/// 库位
/// </summary>
public class LocationDto:BaseDto
{
    //FSM-A1-01-01，代表：FS主仓库-A1区-01行(层)-01个(盒)
    private string name;//库位编号
    public string Name
    {
        get => name;
        set
        {
            name = value;
            OnPropertyChanged();
        }
    }
    private string? remarks;//备注，长、宽、高、承重
    public string? Remarks { get => remarks; set { remarks = value; OnPropertyChanged(); } }


    private Warehouse_e warehouse;//仓库
    public Warehouse_e Warehouse
    {
        get => warehouse;
        set
        {
            warehouse = value;
            OnPropertyChanged();
        }
    }

    private Area_e area;//库区
    public Area_e Area
    {
        get => area;
        set
        {
            area = value;
            OnPropertyChanged();
        }
    }


    #region 额外属性1，添加和修改库位时使用
    private string? column;//列
    public string? Column
    {
        get => column;
        set
        {
            column = value;
            OnPropertyChanged();
        }
    }

    private string? row;//行
    public string? Row
    {
        get => row;
        set
        {
            row = value;
            OnPropertyChanged();
        }
    }

    private string? serial;//序号
    public string? Serial
    {
        get => serial;
        set
        {
            serial = value;
            OnPropertyChanged();
        }
    }
    #endregion

    #region 额外属性2，查询获得物料编码
    //
    private string? mtlNumber;//物料编码
    public string? MtlNumber { get => mtlNumber; set { mtlNumber=value; OnPropertyChanged(); } }

    private string? description;
    public string? Description
    {
        get => description;
        set { description = value; OnPropertyChanged(); }
    }//中文描述/产品编号 
    #endregion

    #region 额外属性3，是否被选中
    private bool isSelected;
    public bool IsSelected
    {
        get => isSelected;
        set
        {
            isSelected = value;
            OnPropertyChanged();
        }
    }
    #endregion

}